package com.deyuanyun.pic.pipe.mapper;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.deyuanyun.pic.domain.pipe.ValveRoom;
import com.github.pagehelper.Page;

public interface DyyValveRoomMapper {
	
	/**
	  * 
	  * 获取未设置中心点的场站阀室 ID 列表
	  *
	  * @return List<ROOM_ID>
	  *
	 */
	List<String> getNoCenterPointRoom();
	
	/**
	  * 
	  *  获取场站阀室坐标信息
	  *
	  * @param roomId 场站阀室ID
	  * @return List<Map<String,Object>> ID_,CONVERT_X,CONVERT_Y,CONVERT_Z
	  * @see    
	  *
	 */
	List<Map<String,Object>> getRoomGisPoint(@Param("roomId") String roomId);
	
	/**
	  * 
	  * 设置场站阀室中心点 
	  *	
	  * @param gisId 场站阀室坐标点ID
	  *
	 */
	void setRoomCenterPoint(Map<String,Object> data);
	
	Page<HashMap<String, Object>> findPage(HashMap param);
	
	ValveRoom findObjctByName(@Param("name") String name);
	
	void insertPosit(Map<String, Object> m);
	
	void insertData(Map<String, Object> m);
	
	Map<String,Object> findInfo(@Param("id") String id);
	
	int delGis(Map map);
	int delInfo(Map map);
	int delGisInfo(Map map);
	public Page<LinkedHashMap<String,Object>> findPageExport(Map param );

	public List<Map<String, Object>> findGis(@Param("roomId") String roomId);
	
	List<HashMap<String, Object>> findValveRoomCenterPoint();
	
	Map<String, Object> findValveRoomCenterPointById(@Param("roomId") String roomId);
}